package com.example.junit5demo.service;

import com.example.junit5demo.domain.User;
import org.springframework.stereotype.Service;

/**
 * @author alexhu
 */
@Service
public class ServiceA {
    final ServiceB serviceB;

    public ServiceA(ServiceB serviceB) {
        this.serviceB = serviceB;
    }

    public User getUserVo(Integer userid) {
        return serviceB.getUserVo(userid);
    }

}
